package com.usian.apis.wemedia;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

public interface MaterialManageControllerApi {


    @PostMapping("/upload")
    ResponseResult uploadPicture(@RequestPart("file") MultipartFile file);

    @PostMapping("findPage")
     PageResponseResult findPage();

    ResponseResult deleteByid(@PathVariable("id") Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    ResponseResult cancleCollectionMaterial(Integer id);

    /**
     * 收藏图片
     * @param id
     * @return
     */
    ResponseResult collectionMaterial(Integer id);
}
